#ifndef __BOARD_H__
#define __BOARD_H__
#include "main.h"
#include "relay.h"
#include "uart.h"

// 继电器使能
#define RELAY_EN_ON() HAL_GPIO_WritePin(Relay_EN_GPIO_Port, Relay_EN_Pin, GPIO_PIN_SET)
#define RELAY_EN_OFF() HAL_GPIO_WritePin(Relay_EN_GPIO_Port, Relay_EN_Pin, GPIO_PIN_RESET)

extern void board_init(void);
extern void uart1_send_data(uint8_t *data, uint16_t len);

extern void eeprom_write(uint32_t write_addr, uint8_t *data, uint16_t length);
extern void eeprom_read(uint32_t read_addr, uint8_t *data, uint16_t length);
#endif // __BOARD_H__
